<?php

	//first check if the cookie exists (if logged in)
	if(isset($_COOKIE['BuffBoardCookie']))
	{
		//get the user id from our cookie
		$ID = userHelper::getUserID();
		//get the type id for the user
		$typeID = userClass::getUserType($ID);
	}
	// if the user is not logged in
	else
		$typeID = 0;
	
	switch($typeID)
	{
		// moderator
		case 3:
			?>
			<a href="userhome.php">Upcoming Events</a>
			<a href="userall.php">All Events</a>
			<a href="useredit.php">Account</a>
			
			<a href="newevent.php">New Event</a>
			
			<a href="edituseraccess.php">User Access</a>
			
			<a class="right" href="logUserOut.php">Logout</a>
			<?php
			break;
		// content creator
		case 2:
			?>
			<a href="userhome.php">Upcoming Events</a>
			<a href="userall.php">All Events</a>
			<a href="useredit.php">Account</a>
			
			<a href="newevent.php">New Event</a>
			
			<a class="right" href="logUserOut.php">Logout</a>
			<?php
			break;
		// general
		case 1:
			?>
			<a href="userhome.php">Upcoming Events</a>
			<a href="userall.php">All Events</a>
			<a href="useredit.php">Account</a>
			
			<a class="right" href="logUserOut.php">Logout</a>
			<?php
			break;
		// not logged in
		default:
		case 0:
			?>
			<a href="#"></a>
			<?php 
	}

?>
	
